﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HzyEF.Base
{
    /// <summary>
    /// Sql 寄存器
    /// </summary>
    public class SqlStorage
    {
        public StringBuilder Code { get; } = new StringBuilder();

        public StringBuilder Code_Column { get; } = new StringBuilder();

        public StringBuilder Code_FromTab { get; } = new StringBuilder();

        public StringBuilder Code_Join { get; } = new StringBuilder();

        public StringBuilder Code_Where { get; } = new StringBuilder();

        public StringBuilder Code_OrderBy { get; } = new StringBuilder();

        public StringBuilder Code_GroupBy { get; } = new StringBuilder();

        public StringBuilder Code_Having { get; } = new StringBuilder();

        public StringBuilder Code_TakePage { get; } = new StringBuilder();

        public List<DbParam> DbParam { get; } = new List<DbParam>();

        public void SetCode(StringBuilder Codes) => this.Code.Append(Codes);






    }
}
